﻿using Prism.Commands;
using Prism.Mvvm;
using Prism.Services.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Input;
using Zhaoxi.SmartParking.Client.IBLL;

namespace Zhaoxi.SmartParking.Client.BaseModule.ViewModels
{
    public class ModifyRoleDialogViewModel : BindableBase, IDialogAware
    {
        private IRoleBLL _roleBll;
        public ModifyRoleDialogViewModel(IRoleBLL roleBll)
        {
            _roleBll = roleBll;
        }

        public string Title => "角色编辑";

        public event Action<IDialogResult> RequestClose;

        public bool CanCloseDialog()
        {
            throw new NotImplementedException();
        }

        public void OnDialogClosed()
        {
            throw new NotImplementedException();
        }

        public void OnDialogOpened(IDialogParameters parameters)
        {
            throw new NotImplementedException();
        }

        public ICommand ConfirmCommand
        {
            get => new DelegateCommand(() =>
            {
                //保存角色信息
            });
        }

        public ICommand CancelCommand
        {
            get => new DelegateCommand(() =>
            {
                RequestClose?.Invoke(new DialogResult(ButtonResult.Cancel));
            });
        }



    }
}
